//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_sales_contract.js中编写
//************************************************
export default function () {
	return {
		editFormFields: {
			Voucher_sub: '',
			Client: '',
			Project_name: '',
			Tax_rate: '',
			Signed_num: '',
			Signed_price: '',
			Signed_date: '',
			Delivery_time: '',
			Check_out_flag: '',
			Delivery_mode: '',
			Install_service: '',
			Delivery_address: '',
			Contract_intro: '',
			Attachment: '',
			Image: '',
			Remark: '',
			Sales_state: '',
			Logistics_status: '',
			Contract_type: ''
		},
		editFormOptions: [
			{ title: '单据编码', field: 'Voucher_sub', type: 'text' },
			{ key: '无条件客户', data: [], title: '客户', required: true, field: 'Client', type: 'select' },
			{ title: '项目名称', field: 'Project_name', type: 'text' },
			{ key: '税率', data: [], title: '业务税率', required: true, field: 'Tax_rate', type: 'select' },
			{ type: 'group' },
			{ title: '签订数量', field: 'Signed_num', type: 'text' },
			{ title: '签订金额', field: 'Signed_price', type: 'text' },
			{ title: '签订时间', required: true, field: 'Signed_date', type: 'datetime' },
			{ title: '交付时间', required: true, field: 'Delivery_time', type: 'datetime' },
			{ type: 'group' },
			{ key: '合同类型', data: [], title: '合同类型', required: true, field: 'Contract_type', type: 'select' },
			{ key: '结账类型', data: [], title: '付款方式', required: true, field: 'Check_out_flag', type: 'select' },
			{ key: '运输方式', data: [], title: '运输方式', required: true, field: 'Delivery_mode', type: 'select' },
			{ key: 'Install_service', data: [], title: '安装服务', field: 'Install_service', type: 'select' },
			{ type: 'group' },
			{ title: '交付地址', required: true, field: 'Delivery_address', type: 'textarea' },
			{ title: '销售合同简介', required: true, field: 'Contract_intro', type: 'textarea' },
			{ type: 'group' },
			{ title: '备注', field: 'Remark', type: 'textarea' },
			{ title: '附件', field: 'Attachment', type: 'file' },
			{ title: '图片', field: 'Image', type: 'img' },
			{ type: 'group' },
			{ key: '发货状态', data: [], title: '发货状态', field: 'Logistics_status', type: 'select' },
			{ key: 'Sales_state', data: [], title: '销售状态', field: 'Sales_state', type: 'select' }
		],
		searchFormFields: {
			Voucher_sub: '',
			Client: '',
			Project_name: '',
			Check_out_flag: '',
			Sales_state: '',
			Install_service: '',
			Logistics_status: '',
			AuditStatus: '',
			CreateDate: '',
			Contract_type:''
		},
		searchFormOptions: [
			{ key: '结账类型', data: [], title: '付款方式', field: 'Check_out_flag', type: 'select' },
			{ key: '合同类型', data: [], title: '合同类型', field: 'Contract_type', type: 'select' },
			{ type: 'group' },
			{ title: '单据编码', field: 'Voucher_sub', type: 'like' },
			{ key: '无条件客户', data: [], title: '客户', field: 'Client', type: 'select' },
			{ title: '项目名称', field: 'Project_name', type: 'like' },
			{ key: 'Sales_state', data: [], title: '销售状态', field: 'Sales_state', type: 'select' },
			{ type: 'group' },
			{ key: '发货状态', data: [], title: '发货状态', field: 'Logistics_status', type: 'select' },
			{ key: 'Install_service', data: [], title: '安装服务', field: 'Install_service', type: 'select' },
			{ type: 'group' },
			{ key: 'audit', data: [], title: '审核状态', field: 'AuditStatus', type: 'select' },
			{ title: '创建时间', field: 'CreateDate', type: 'datetime' }
		],
		columns: [
			{ field: 'Voucher_sub', title: '单据编码', type: 'string', link: true },
			{ field: 'Client', title: '客户', type: 'int', bind: { key: '无条件客户', data: [] } },
			{ field: 'Project_name', title: '项目名称', type: 'string' },
			{ field: 'Signed_num', title: '签订数量', type: 'float' },
			{ field: 'Signed_price', title: '签订金额', type: 'decimal' },
			{ field: 'Tax_rate', title: '业务税率', type: 'decimal', bind: { key: '税率', data: [] } },
			{ field: 'Contract_type', title: '合同类型', type: 'int', bind: { key: '合同类型', data: [] } },
			{ field: 'Check_out_flag', title: '付款方式', type: 'int', bind: { key: '结账类型', data: [] } },
			{ field: 'Delivery_mode', title: '运输方式', type: 'int', bind: { key: '运输方式', data: [] } },
			{ field: 'Sales_state', title: '销售状态', type: 'int', bind: { key: 'Sales_state', data: [] } },
			{ field: 'Install_service', title: '安装服务', type: 'int', bind: { key: 'Install_service', data: [] } },
			{ field: 'Logistics_status', title: '发货状态', type: 'int', bind: { key: '发货状态', data: [] } },
			{ field: 'Signed_date', title: '签订时间', type: 'datetime' },
			{ field: 'Delivery_time', title: '交付时间', type: 'datetime' },
			{ field: 'Delivery_address', title: '交付地址', type: 'string' },
			{ field: 'Contract_intro', title: '销售合同简介', type: 'string' },
			{ field: 'AuditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] } },
			{ field: 'Attachment', title: '附件', type: 'file' },
			{ field: 'Image', title: '图片', type: 'img' },
			{ field: 'Remark', title: '备注', type: 'string' },
			{ field: 'CreateDate', title: '创建时间', type: 'datetime' }
		],
		table: {
			key: 'Sales_contract',
			footer: 'Foots',
			cnName: '销售合同',
			name: 'q_sales_contract',
			url: '/q_sales_contract/',
			sortName: 'Voucher_sub'
		}
	};
}
